package com.sheliduan.itlearning.admin.model.vos.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sheliduan.itlearning.common.model.BasePageQuery;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * @author: 断舍离
 * @date: 2025/2/13 9:40
 * @description: 查询用户分页数据入参VO(根据用户角色)
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class FindUserPageListReqVO extends BasePageQuery {

    // 用户角色
    @NotBlank(message = "角色不能为空")
    private String role;

    // 用户名
    private String username;

    // 起始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startDate;

    // 结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endDate;
}
